package myTeam.timeShop.bean;

// Generated 2016-3-29 15:13:44 by Hibernate Tools 3.2.2.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 
 */
@Entity
@Table(name = "tb_carousel", catalog = "db_timeshop")
public class TbCarousel implements java.io.Serializable {

	/** 
	 * �����ͼƬid.
	 */

	private Integer carouselId;

	/** 
	 * ���������.
	 */

	private String carouselTitle;

	/** 
	 * ���������.
	 */

	private Integer carouselSequence;

	/** 
	 * ��������ʱ��.
	 */

	private Date carouselAddTime;

	/** 
	 * �����ͼƬ·��.
	 */

	private String carouselPath;

	public TbCarousel() {
	}

	public TbCarousel(String carouselTitle, Integer carouselSequence,
			Date carouselAddTime, String carouselPath) {
		setCarouselTitle(carouselTitle);
		setCarouselSequence(carouselSequence);
		setCarouselAddTime(carouselAddTime);
		setCarouselPath(carouselPath);
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "carousel_id", unique = true, nullable = false)
	public Integer getCarouselId() {
		return this.carouselId;
	}

	public void setCarouselId(Integer carouselId) {
		this.carouselId = carouselId;
	}

	@Column(name = "carousel_title", length = 50)
	public String getCarouselTitle() {
		return this.carouselTitle;
	}

	public void setCarouselTitle(String carouselTitle) {
		this.carouselTitle = carouselTitle;
	}

	@Column(name = "carousel_sequence")
	public Integer getCarouselSequence() {
		return this.carouselSequence;
	}

	public void setCarouselSequence(Integer carouselSequence) {
		this.carouselSequence = carouselSequence;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "carousel_add_time", length = 19)
	public Date getCarouselAddTime() {
		return this.carouselAddTime;
	}

	public void setCarouselAddTime(Date carouselAddTime) {
		this.carouselAddTime = carouselAddTime;
	}

	@Column(name = "carousel_path", length = 100)
	public String getCarouselPath() {
		return this.carouselPath;
	}

	public void setCarouselPath(String carouselPath) {
		this.carouselPath = carouselPath;
	}

}
